from datetime import datetime


def datetime_to_ms_timestamp(dt: datetime) -> int:
    """
    Converts a datetime object to a millisecond-precision timestamp.
    """
    return int(dt.timestamp() * 1000)