How to Trigger Workspace Navigation from within Javascript?

I want write custom javascript that will navigate the client UI to a specific Module Workspace. How can I do that?

Something like this should work:

frappe.set_route("accounting");
// or
frappe.set_route("crm");

Thank you!!!

What about how to navigate to a specific document?
And how to navigate to a specific view for a doctype (such as the list view)?

For a List page:

frappe.set_route("List", "Sales Order");

For a specific Document:

frappe.set_route("Form", "Item", "ABC-1234");

For a Report:

frappe.set_route("query-report", "Stock Balance");

Awesome, thank you!