PSA: If you have a thinkpad, the lenovo settings app lets you control this too. In lenovo vantage, go to Device > My Device Settings > Battery settings > Battery Charge Threshold.
The Dell XPS 13 also offers an interface in the BIOS that lets you set a charge limit, hours not to charge the laptop, and a bunch of other great controls. The only big issue is that they don't expose it through a friendly UI within Windows 10. It's nonsense that I need to go to the BIOS to tweak these settings.
There's also a DCC package for Linux which can do the same thing. I made a thin Python wrapper which would read a number and set that to the maximum battery charge limit (e.g. $ battery.py 85). Unfortunately I got rid of the xps so I don't have the script, but it was very simple. Hard part was figuring out what the cmdline arguments to the DCC executable were.