Both diesel and electric
Both diesel and electric trucks have a max weight of 80,000 pounds, so tire wear should be similar.
"It is advertised that the average battery will last 10 years."
Who advertised that? I can only assume it was an oil company or a company selling non-electric vehicles. Electric car batteries are expected to outlast the car's that come with them. Past 20 years, corrosion becomes a risk. Electric semis might be able to wear out the batteries in 10 years, but only if they're driven enough to consume a million dollars of fuel in a diesel truck. Then just take a part of the fuel savings and buy a new truck.