const battery = { charge: 100 } const party = setInterval(() => { battery.charge -= smallTalk() + loudMusic() + someoneYouSortOfKnow() if (battery.charge < 20) { findHost()?.thank() // the polite shutdown irishExit() // what actually happens clearInterval(party) } }, 60_000) // one awkward minute