closed

external val closed: Boolean(source)

The Window.closed read-only property indicates whether the referenced window is closed or not.

MDN Reference