isClosed
Checks whether this webview has been closed.
async isClosed(): Promise<boolean>
Returns
A Promise that resolves to true if the webview is closed, false if it is still open.
Example
// Check if the webview is still open
const closed = await webview.isClosed();
// Close the webview
await webview.close();