refactor: move `truncateAnchors`
2 files changed