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

# closeResourceCenter()

> Programmatically collapse the resource center back to its launcher

<Note>
  Requires `usertour.js` 0.0.20 or later.
</Note>

The `closeResourceCenter()` method collapses the resource center panel back to its launcher. If the resource center is already collapsed, this call is a no‑op. If no resource center is currently active for the user, the call has no effect.

## Parameters

None.

## Returns

`void`

## Example

```javascript theme={null}
// Collapse the resource center when the user navigates to a focus mode
enterFocusMode(() => {
  usertour.closeResourceCenter();
});
```

<Note>
  Make sure to call `init()` before using any other Usertour.js methods.
</Note>
