import { totpAtStep } from '../../src/security/totp.mjs'; const secret = String(process.argv[2] || ''); if (!secret) throw new Error('TOTP secret is required'); console.log(totpAtStep(secret, Math.floor(Date.now() / 1000 / 30)));