Install library as npm module:
npm install trezor-connect
or
yarn add trezor-connect
Include library as inline script:
<script src="https://connect.trezor.io/5/trezor-connect.js"></script>
ES6
import TrezorConnect from 'trezor-connect';
CommonJS
var TrezorConnect = require('trezor-connect').default;
Inline
var TrezorConnect = window.TrezorConnect;