window.injectCSharp = async function (helper) { window.CSHARP = helper } async function delay(t) { return new Promise((resolve) => { setTimeout(resolve, t); }); } async function removeElementById(id) { document.getElementById(id)?.remove() }