Is it possible to (a) close the markers pane or (b) switch to the console?

Using rstudioapi:: or some other stable approach, is it possible to programmatically close a Markers pane one has opened using rstudioapi::sourceMarkers()?

Is it possible to programmatically switch to the console when a Markers pane is foremost?