Power supply for XIAO ESP32 C6

Hello, I used a XIAO ESP32 C6 board for the project, which is powered by a li-ion battery connected to the BAT +/- poles on the bottom side of the board. The board has the possibility of charging the battery via the USB C port, however the problem is that the board is located deep in the case and you would need an extension, I am wondering if this can be done using a basic 2 line USB C extender which would then be connected to the 5V pin of the board and GND. Is this possible?

move the XIAO USB connector to the side of the enclosure

Yes you can do so. Please check VBUS and GND pins in its schematic file above.