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

Power on/off?

If you just let it run it will turn off when the battery dies. I would like to say I am clairvoyant and can answer your question but without knowing exactly what you have I can only guess and I do not like doing that. You say everything works how about the switch with 3 leads.