iOS 14’s Optimized Battery Charging feature will increase the battery lifespan of AirPods
A similar feature called Battery Health Management was rolled out with a recent macOS Catalina update for the MacBook portfolio.