[ci skip] Add return types to helper docs (+ some other formatting)
[ci skip] Add return types to common and error handling functions docs