In a electric truck or other vehicle, the battery is the most expensive component and the one that most often has to be exchanged. Battery degradation is a very complicated process that depends on a multitude of factors:
How many charge/discharge cycles the battery has gone through.
How full the battery is charged. For most batteries, there is an optimal range of for example 10 to 50% where it is best to stay.