Interact witht the markdown note panel in a plugin

Is there a way to hide the markdown panel using the plugin api?

Look at these commands

await joplin.commands.execute('toggleVisiblePanes');