feat(config): adds "closest" method