Jira issue action close

I am using Forge with Custom UI and I made a Jira issue action module. I manipulate some worklogs there and I have a Save and a Cancel button in the bottom of the modal which I defined. How can I wire these buttons to close the issue action modal?

Thank you very much!