fn apply_suffix<'a>(
        &self,
        content: &'a str,
        char_count: usize,
        limit: usize,
    ) -> ClipperResult<'a> {
        if char_count <= limit {
            return ClipperResult { prefix: None, suffix: None, actual: content };
        }

        // Find the byte index corresponding to where the suffix starts
        let start_idx = content
            .char_indices()
            .nth(char_count - limit)
            .map_or(0, |(idx, _)| idx);

        ClipperResult {
            prefix: None,
            suffix: Some(start_idx..content.len()),
            actual: content,
        }
    }
Helper method to truncate content from the end
crates/forge_services/src/clipper.rs