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