import { getCurrentWebview } from "@tauri-apps/api/webview";
await getCurrentWebview().setZoom(1.5);
https://tauri.app/reference/javascript/api/namespacewebview/#setzoom
you also need to add "core:webview:allow-set-webview-zoom" permission to the capabilities