L, S and T Thermostat Terminals: Can You Skip Them?
L (or L/A) lights a "check heat pump" indicator on some older thermostats. S/S1/S2 connect an outdoor or remote sensor. T shows up on some older thermostats for an outdoor sensor or anticipator. None of these normally turn equipment on, and Google lists S and L as unnecessary for Nest.
Cap each unused wire individually (electrical tape or a small wire nut) so bare ends can’t touch. The Honeywell T9 can use L/A if you want the service indicator.