Powering esp32s3 sense

What is the best way to power the esp32s3 sense for a static application (no battery)? Is it by going through the 5V pin through a diode or attaching some voltage around 3.7V to the battery connection (I’m worried that will not play well with the usb c port connected for programming since it is designed to charge a connected battery)? Assuming I connect the board to power through 5V with a diode, I am guessing it’s necessary to shut the 5V off before connecting usb c for programming? Pretty new to electronics so apologies for possibly obvious questions. Thanks for reading!