Close current Doc iNotes

Hello,

i was looking for the function to close the current doc (tab) in iNotes.

I only found the function to open a new doc with:

openNewShimmerDoc(…) ou openShimmerDoc(…), but how do i close it?

Let`s say i run an agent on a button click in the toolbar, than i want to print the needed javascript to close the tab.