Симулировать TypeScript

let element: HTMLElement = document.getElementsByClassName('btn')[0] as HTMLElement;
element.click();
Smoggy Sardine