closeMiniapp command programmatically closes the mini app from within your application.
Use Case: This command is useful when your mini app needs to close itself after completing an action, such as opening a deeplink to another app or finishing a specific flow.
Using the command
The command takes no arguments and has no response — the mini app closes immediately.app/page.tsx
Example: Close after opening a deeplink
app/page.tsx