Variable closed

    closed: boolean

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

    MDN Reference