How do I get an info about battery percentage that powering up the Arduino

I’ve a issue with my XIAO nRF52840 board and Li-Po battery setup. While working on a project that involves Bluetooth communication, I needed to monitor the battery percentage and receive charging status indications. I scoured the forum and documentation, but I couldn’t find a straightforward solution or example code specific to my hardware configuration. I can’t figure out how to implement this feature effectively.