// The window this instance renders into, or null when there is no DOM (Node)
cy.window(): (Window & typeof globalThis) | nullThe window this instance renders into, or null when there is no DOM (Node). Useful for extensions that need the hosting realm.
Returns
(Window & typeof globalThis) | nullthe global window, or null outside a browser