fn
delay(ms: number): Promise<void>Await a delay of ms milliseconds before continuing. Tick-integrated (resumes on a game frame).
import { delay } from "@s2script/sdk/timers";
// plugins/funcommands/src/plugin.ts:77 — sm_freeze auto-unfreeze after `secs`
delay(secs * 1000).then(() => { const q = Player.fromSlot(slot); if (q && q.pawn) q.pawn.moveType = WALK; });