Sayeth the warranty:
"Basic Vehicle Limited Warranty Subject to separate coverage for certain parts and the exclusions and limitations described in this New Vehicle Limited Warranty, the Basic Vehicle Limited Warranty covers the repair or replacement necessary to correct defects in the materials or workmanship of any parts manufactured or supplied by Tesla that occur under normal use for a period of 4 years or 50,000 miles (80,000 km), whichever comes first."
Interestingly the battery/DU warranty doesn't have the "normal use" language, but it does exclude "abuse" and remind buyers that batteries normally degrade both power and capacity.
"Despite the breadth of this warranty, damage resulting from intentional actions (including intentionally abusing or destroying your vehicle or ignoring active vehicle warnings), a collision or accident (excluding from Battery fires as specified above), or the servicing or opening of the Battery or Drive Unit by non-Tesla personnel, is not covered under this Battery and Drive Unit Limited Warranty.
"The Battery, like all lithium-ion batteries, will experience gradual energy or power loss with time and use. Loss of Battery energy or power over time or due to or resulting from Battery usage, is NOT covered under this Battery and Drive Unit Limited Warranty."
https://www.tesla.com/sites/default/files/pdfs/Model_S_New_Vehicle_Limited_Warranty_201602_en_NA.pdf