the [noun]'s switchの marks what the switch belongs to or is associated with, and を marks the switch as the object of the verb that follows. For example, ガスのスイッチを切る means “turn off the gas switch.”
JA: 寝る前に、エアコンのスイッチを切ってください。
EN: Please turn off the air conditioner switch before going to bed.