"""JavaScript/TypeScript context helpers for multi-file markdown detection."""


def is_multi_context_js(code: str) -> bool:
    """Check if code is in multi-file markdown format (JavaScript)."""
    stripped = code.strip()
    return stripped.startswith(("```javascript:", "```js:"))


def is_multi_context_ts(code: str) -> bool:
    """Check if code is in multi-file markdown format (TypeScript)."""
    stripped = code.strip()
    return stripped.startswith(("```typescript:", "```ts:"))
