Closes the inventory window if it's currently visible.
hide_inventory()
hide_inventory();
Results: The inventory window will no longer be visible until opened again.