> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
> Use this file to discover all available pages before exploring further.

# closePluginView

> Close the plugin UI.

This API closes the currently shown plugin UI.

```ts theme={null}
closePluginView(): Promise<boolean>;
```

**Returns**

* `Promise<boolean>`: whether the UI was closed successfully

## Example

```ts wrap theme={null}
import { PluginManager } from 'sn-plugin-lib';

/**
 * Example: close the plugin UI.
 */
export async function exampleClosePluginView() {
 const ok = await PluginManager.closePluginView();
 return ok;
}
```
