You can use the consoleLib.hideAllMenuItems() system function to hide all menu items in the currently displayed menu.
consoleLib.hideAllMenuItems( )