To support ArConnect types, you can install the npm package
npm i -D arconnect
yarn add -D arconnect
To add the types to your project, you should either include the package in your
tsconfig.json, or add the following to your
/// <reference types="arconnect" />
Type declarations can be found here.