stopTimer = () => {
  if (globalState.timeout) {
    stopTimerProgressBar()
    return globalState.timeout.stop()
  }
}
Stop timer. Returns number of milliseconds of timer remained.
If `timer` parameter isn't set, returns undefined.

@returns {number | undefined}