Property 'cordova' does not exist on type 'Window'. : ionic

In my code, I’m getting the error as Property 'cordova' does not exist on type 'Window'. This is where I’m getting the error var browserRef = window.cordova.InAppBrowser.open()

I’ve also installed the typings but still I’m getting this error. How can I resolve this?

Obviously cordova does not exist on the variable window.

How are you testing? On a device?
What is your ionic info output?

yes I’m testing on a device. This error is shown by the vscode. I have another ionic project where I’ve used the same code I don’t find any issue over there? but in this project I’m getting this error.