It probably depends on the batteries, battery market, and repair market. We don't really expect batteries to last a decade. The repairability of these tools is a concern.
Meanwhile, it's pretty common to repair gas tools. Sometimes from multiple broken ones. Powering the gas tools is similarly simple. None of it requires a company to continue to develop their proprietary product to run.
This is an industry and a market that has been around for decades. I suspect the limited part supply and limited repairability of the electric tools is going to limit their practical lifetime compared to the existing ones on the market.