Closes the currently open modal.
Note: This method works only in the code of a dashboard modal extension, so it doesn't work when developing sites or building apps with Blocks.

| Name | Type | Description |
|---|---|---|
closeData | Serializable | Optional. Data to pass to the modal's opener. This data is returned by openModal once the modal is closed. It must be Serializable data, which means it can be cloned using the structured clone algorithm. For example, you can't pass callbacks in this parameter. |
void
Note: To call this method in self-managed apps, you need to create a client. See the setup guide for more details.