let input = document.querySelector('input[type="text"]') as HTMLInputElement;Code language: TypeScript (typescript)