In the event that the browser fails to connect, the run promise resolves with results which has runs of null or undefined. (Which is likely a separate issue altogether. It should probably not resolve at all - it should reject).
However, the typings indicate that the type of runs is RunResult which doesn't match null
The type should indicate that runs can be undefined or null, or run() should not resolve on an error running the tests altogether.