import { workspace } from 'vscode'; workspace.onDidCloseTextDocument((document) => { console.log(`Closed document: ${document.uri.toString()}`); });In this example, the onDidCloseTextDocument event is used to log a message to the console indicating the URI of the closed document. Package Library: vscode ```typescript