Close glance from code?

Hello. Is it technically possible to close glance content from code ?
Something like AP.jira.refreshIssuePage() but to close (and not refresh) the iframe.
Or maybe there are plans to implement this functionality ?