import { sendTransaction } from "thirdweb";
import { openPack } from "thirdweb/extensions/pack";
const transaction = openPack({
contract,
packId: ...,
amountToOpen: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });