import { setTimeout as pause } from "node:timers/promises"; async function main(): Promise { const state = await pause(1, "Ready for collection"); console.log(state); } main().catch(error => { console.error(String(error)); });