Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

closed

Returns true if the window has been closed, false otherwise.

var closed: boolean;