Where to add a power on/off switch to an ESP32 board with battery

Yes, to be able to turn off my board when connected to battery or while charging on USB-C.