import open = require('open'); open('foo'); // $ExpectType Promise open('foo', { app: 'bar' }); // $ExpectType Promise open('foo', { app: ['bar', '--arg'] }); // $ExpectType Promise open('foo', { app: 'bar', wait: false }); // $ExpectType Promise open('foo', { app: 'bar', background: false }); // $ExpectType Promise open('foo', { app: ['bar', '--arg'], wait: false }); // $ExpectType Promise open('foo', { app: ['bar', '--arg'], background: false }); // $ExpectType Promise