Is there a simulatable SPST switch somewhere?

The example below is taken from a thread for KiCad 7.99 (ngSpice 41) but I guess this part of it has been the same for a long time.

Source:


Edit: The most important thing here is probably to realize that circuit elements can be changed by formulas, the “time” parameter or other things. That is probably much more convenient in a lot of simulations than emulating a “real” switch.