* fix: remove trailing comma in tsconfig.json * docs: enhance JSDoc documentation and clean up outdated TODO comments * chore: tweak the type * chore: keep the version comparison