I stick with corded yard tools for this reason.
I got burned by tool manufacturers obsoleting their battery models every two years.
With hand tools such as screw guns, I just assume they will only last the life of the "replaceable" battery. So wasteful, but such is life.