In practice, there is no problem to be solved here.
I have used a Magic Mouse for at least five years. It has never run out of juice while I’m using it, and I simply plug it in at lunch or overnight or on a Zoom call for a bit when I start getting notifications about the battery.
It runs for three weeks of daily use without need for a charge.