Help to run nocaptchaai, nodejs npm package

Can anyone help me run this script inside puppeteer? Here’s the package repository and their usage example.

noCaptchaAi / nocaptchaai-puppeteer

import puppeteer from 'puppeteer';
import { solveCaptcha } from '../src/index';

const URL = 'https://accounts.hcaptcha.com/demo';

//**** get apikey here -> http://nocaptchaai.com *****
const API_KEY = ''; // <-- your API key here
const UID = ''; // <-- your UID here
const lang = 'en'; // desired language. 'en' = english, 'ru' = russian

const main = async (): Promise<void> => {
  const browser = await puppeteer.launch({ headless: false, args: [`--lang=${lang}`] });
  const page = await browser.newPage();
  await page.goto(URL);
  await page.waitForNetworkIdle();

  await solveCaptcha(page, API_KEY, UID, 'free', true); // params: 'free or pro', 5) debug -> true or false

  await page.screenshot({ path: `example/test.jpeg`, type: 'jpeg' });

  await browser.close();
};

main();

Nobody can help me? Please.