Add typings for sprintf, argparse and use typings for Q in onepass.ts