Defina o temporizador por 30 segundos para OTP no TypeScript

  countdown() {

    let thisRef=this;
    setInterval(function () {
      thisRef.timeLeft--;
    thisRef.ChangeDetectorRef.detectChanges();

    }, 1000);
  }
Mohan Eswar