import { invoke } from "@tauri-apps/api"; export default async function invokeCommand(command: string, args?: any) { try { return await invoke(command, args); } catch (err: any) { throw new Error(err.message); } }