First offender Alice Gray of Church Square, Galashiels, pleaded guilty to shouting, swearing and screaming and refusing to leave a taxi when requested to do so.
Selkirk Sheriff Court was told that a taxi driver pulled up outside Galashiels Police Station and told officers she would not get out of the vehicle. She was abusive and turned increasingly violent to the constables as she was arrested.
Procurator fiscal Graham Fraser said Gray then told officers she would kill them.
Defence lawyer Ross Dow said it was “uncharacteristic behaviour” from his client.
He explained she had been on a night out and had drank far too much which she was not used to and had no recollection of the incident.
Sheriff Peter Paterson deferred sentence until February 10, 2020.
He said if Gray was of good behaviour a compensation order in favour of the taxi driver would be imposed.