Consumeraffairs review of battery pack replacement costs (https://www.consumeraffairs.com/automotive/ev-battery-replac...) implies that this costs $13k-$17k, so much more than engine replacements for old cars, as long as we're talking about battery packs which have appropriate capacity for full EV, not a hybrid or simply putting in a much smaller capacity than originally installed.