Get standard Sales account in Client Script

I want to add Items to a Sales Invoice via a custom button. The question is how to get the standard sales income account. When a item is manually added the Sales - [Company Abbreviation] account is selected as an income account. How can I get this account without using the company name?

I don’t know if this is the best way, but that’s how I solved it:

const { default_income_account } = await frappe.db.get_doc("Company",