refactor: reduce eslint warnings
This MR reduces the number of current eslint warnings by
- adding missing return types and
- removing unused variables.
The reason is to remove the visual noise when (re)viewing the code in an IDE and make more use of TypeScript’s typing.