import { bnToBn } from "https://deno.land/x/polkadot@0.2.37/util/bn/toBn.ts";
Examples
import BN from 'https://esm.sh/bn.js@5.2.1';
import { bnToBn } from 'https://deno.land/x/polkadot@0.2.37/util/mod.ts';
bnToBn(0x1234); // => BN(0x1234)
bnToBn(new BN(0x1234)); // => BN(0x1234)