import { sendTransaction } from "thirdweb";
import { unpublishContract } from "thirdweb/extensions/thirdweb";
 
const transaction = unpublishContract({
 contract,
 publisher: ...,
 contractId: ...,
 overrides: {
   ...
 }
});
 
// Send the transaction
await sendTransaction({ transaction, account });