So, you may have heard that lithium-ion batteries last longer if they don't spent lots of time at 100% (or near 0%). This naturally raises the question of "can I control the charge level?" For my latest two Android phones, the answer is yes: my new OnePlus lets you cap charge at 80%, and I found my Samsung (based on an older version of Android) offers 85%. Given the divergence, I'm guessing these are OEM add-ons, not something in stock Android. It's also separate from the other option of "smart" or "optimized" charging. So my phones are now capped, and if I make a long trip, hopefully I'll remember to fully charges them first.
What about my laptops? I don't think they come with explicit options. MacOS does have "optimized" charging, supposedly learning from your patterns; it had been charging to 80%, then stopped, and I don't know how to make it go back. But! I found a program, https://github.com/actuallymentor/battery, that does it for you (on Silicon Macs). You can even choose your charge level via the CLI tool, and I'm now parked at 70%. Again, if my laptop actually went anywhere I'd want to then lift the cap, but it mostly just sits a chair and power outlet, or occasionally gets taken for a walk around the house.