import { invoke } from '@tauri-apps/api/core' type DuckResponse = { success: boolean } export async function duck(): Promise { // @ts-expect-error - not typed return await invoke('plugin:duck|duck').then((r: DuckResponse) => r.success); } export async function unduck(): Promise { // @ts-expect-error - not typed return await invoke('plugin:duck|unduck').then((r: DuckResponse) => r.success); }