npm install --save @types/openpgp
This package contains type definitions for openpgp (http://openpgpjs.org/). The ones in DefinitelyTyped are out of date, so FlowCrypt Limited made some changes and has been trying to upstream them. However, they still aren't upstreamed.